package com.farm.worm.test;

import java.util.Map;

import com.farm.worm.domain.FarmWormProject;
import com.farm.worm.server.WormDocHandleInter;
import com.farm.worm.server.WormDocHandlePara;

public class WormHandle implements WormDocHandleInter {

	@Override
	public void handle(Map<String, String> doc, FarmWormProject pro,
			WormDocHandlePara appPara) {
		for (Map.Entry<String, String> node : doc.entrySet()) {
			System.out.println(node.getKey() + ":" + node.getValue());
		}
		for (String key : appPara.keySet()) {
			System.out.println(key + ":" + appPara.get(key));
		}
	}

	@Override
	public WormDocHandlePara getParaFormat() {
		WormDocHandlePara para = new WormDocHandlePara();
		para.put("LOGINNAME", "用户登录名");
		para.put("TYPEID", "分类ID");
		para.put("GROUPID", "小组ID");
		return para;
	}
}
